import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    name: "sellerpage",
    path: "/sellerpage",
    component: () => import("@/views/SellerPage.vue"),
  },
  {
    name: "trendpage",
    path: "/trendpage",
    component: () => import("@/views/TrendPage.vue"),
  },
  {
    name: "mappage",
    path: "/mappage",
    component: () => import("@/views/MapPage.vue"),
  },
  {
    name: "rankpage",
    path: "/rankpage",
    component: () => import("@/views/RankPage.vue"),
  },
  {
    name: "hotpage",
    path: "/hotpage",
    component: () => import("@/views/HotPage.vue"),
  },
  {
    name: "stockpage",
    path: "/stockpage",
    component: () => import("@/views/StockPage.vue"),
  },
  {
    name: "screenPage",
    path: "/screenPage",
    component: () => import("@/views/ScreenPage.vue"),
  },
  {
    path: "/",
    redirect: "/screenPage",
  },
];

const router = new VueRouter({
  routes,
});

export default router;
